package com.neusoft.databus.core.vo;

import com.excel.poi.annotation.ExportField;
import com.excel.poi.annotation.ImportField;
import com.neusoft.databus.core.constant.DatabusCoreConstant;

import lombok.Getter;
import lombok.Setter;

/**
 * 资源导入导出VO
 *
 * @author naxiang
 */
@Getter
@Setter
public class ResourcePortVO {

    /** 资源名称 */
    @ExportField(columnName = DatabusCoreConstant.RESOURCE_TPL_COLUMN_1)
    @ImportField(required = true)
    private String name;

    /** 资源类型 */
    @ExportField(columnName = DatabusCoreConstant.RESOURCE_TPL_COLUMN_2)
    @ImportField(required = false)
    private String type;

    /** 资源拓展属性 */
    @ImportField(required = false)
    private String config;

    /** 网关code */
    @ImportField(required = false)
    private String gatewayCode;

    /** 指标组code */
    @ImportField(required = false)
    private String metricGroupCode;

    @ExportField(columnName = "网关名称")
    private String gatewayName;

    @ExportField(columnName = "指标组名称")
    private String metricGroupName;

    /** 子系统关联关系 */
    @ImportField(required = false)
    private String associate;
}
